public class cat {
    private  String  name;
    private  int     age ;

    public cat (String name,int age){
        this.name=name;
        this.age =age ;
    }
   public void printcatinfo(){
       System.out.println("猫的名字："+name);
       System.out.println("猫的年龄："+age);
   }

    public static void main(String[] args) {
        cat cat = new cat("汉权",3);
        cat.printcatinfo();
    }
    }
